




function add(){
	var name=$("#role").val();
	  $.ajax({
        url: urlcore + "/api/adminRole/add",
        type: "post",
        dataType: "json",
        data:JSON.stringify({
        	"name":name
        }),
        headers: {"Content-Type": "application/json;charset=UTF-8"},
        success: function (data) {
           window.location.href="role_list.html";
        },
        error: function (data) {
            alert(data.msg);
        }
    })
	
	
}




